package net.chrisrichardson.cloudtools.maven.plugins;

import net.chrisrichardson.ec2deployer.cluster.ClusterManager;

import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;

/**
 * Goal which stops the cluster
 * 
 * @goal list
 * 
 */
public class ListClustersMojo extends AbstractCloudToolsMojo {

  public void execute() throws MojoExecutionException, MojoFailureException {
    ClusterManager manager = makeClusterManager();
    for (Object name : manager.listClusters()) {
      System.out.println(name);
    }

  }

}
